import requests
import config
class InvestmentApi:

    def __init__(self):
        self.investment_url = config.BASE_URL + "/trust/trust/tender"
        self.mytenderlist_url = config.BASE_URL + "/loan/tender/mytenderlist"

    def post_investment(self, session, data_dict):
        return session.post(url=self.investment_url, data=data_dict)

    # 我的投资列表
    def post_mytenderlist(self, session, data_dict):
        return session.post(url=self.mytenderlist_url, data=data_dict)